﻿namespace DotNetClient
{
    public class Routes
    {
        // gate
        public const string C2S_GATE_CONNECT = "gate.main.connect";

        // connector
        public const string C2S_CONNECTOR_LOGIN = "connector.main.login";
        public const string C2S_CONNECTOR_LOGOUT = "connector.main.logout";
        public const string C2S_CONNECTOR_REGISTER = "connector.main.register";

        // lobby
        public const string C2S_LOBBY_MATCH = "lobby.main.match";
        public const string C2S_LOBBY_UNMATCH = "lobby.main.unmatch";
        public const string C2S_LOBBY_SEND_CHAT = "lobby.main.sendChatMessage";
        public const string S2C_LOBBY_ON_CHAT = "lobby_onChat";
        public const string S2C_LOBBY_ON_ENTER = "lobby_onEnter";
        public const string S2C_LOBBY_ON_LEAVE = "lobby_onLeave";

        // room
        public const string C2S_ROOM_CREATE = "room.main.create";
        public const string C2S_ROOM_JOIN = "room.main.join";
        public const string C2S_ROOM_LEAVE = "room.main.leave";
        public const string C2S_ROOM_PLAYER_ACTION = "room.main.playerAction";
        public const string S2C_ROOM_ON_PLAYER_INFO = "room_onPlayerInfo";
        public const string S2C_ROOM_ON_PLAYER_LEAVE = "room_onPlayerLeave";
        public const string S2C_ROOM_ON_MATCH = "room_onMatch";
        public const string S2C_ROOM_ON_KICK = "room_onKick";

        // database
        public const string C2S_DB_GET_USER = "database.main.getUser";
        public const string C2S_DB_RENAME = "database.main.rename";
        public const string C2S_DB_GET_DOUDIZHU_INFO = "database.main.getDoudizhuInfo";

        // doudizhu
        public const string S2C_DOUDIZHU_ON_GAME_INIT = "doudizhu_onGameInit";
        public const string S2C_DOUDIZHU_ON_GAME_START = "doudizhu_onGameStart";

    }
}
